package com.wutianyi.example.transaction;

public class ExampleServiceImpl implements ExampleService {

	private Example1Mapper mapper1;
	private Example2Mapper mapper2;

	@Override
	public void insert(ExampleDO example) {
		mapper1.insert(example);
		mapper2.insert(example);
	}

	public Example1Mapper getMapper1() {
		return mapper1;
	}

	public void setMapper1(Example1Mapper mapper1) {
		this.mapper1 = mapper1;
	}

	public Example2Mapper getMapper2() {
		return mapper2;
	}

	public void setMapper2(Example2Mapper mapper2) {
		this.mapper2 = mapper2;
	}

}
